﻿<!DOCTYPE html>
<!--[if IE]><![endif]-->
<html>
  
  <head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <title>Interface IWebDavClass2
   </title>
    <meta name="viewport" content="width=device-width">
    <meta name="title" content="Interface IWebDavClass2
   ">
    <meta name="generator" content="docfx 2.16.2.2">
    
    <link rel="shortcut icon" href="../favicon.ico">
    <link rel="stylesheet" href="../styles/docfx.vendor.css">
    <link rel="stylesheet" href="../styles/docfx.css">
    <link rel="stylesheet" href="../styles/main.css">
    <meta property="docfx:navrel" content="../toc.html">
    <meta property="docfx:tocrel" content="toc.html">
    
    
  </head>
  <body data-spy="scroll" data-target="#affix">
    <div id="wrapper">
      <header>
        
        <nav id="autocollapse" class="navbar navbar-inverse ng-scope" role="navigation">
          <div class="container">
            <div class="navbar-header">
              <button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#navbar">
                <span class="sr-only">Toggle navigation</span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
              </button>
              
              <a class="navbar-brand" href="../index.html">
                <img id="logo" class="svg" src="../logo.svg" alt="">
              </a>
            </div>
            <div class="collapse navbar-collapse" id="navbar">
              <form class="navbar-form navbar-right" role="search" id="search">
                <div class="form-group">
                  <input type="text" class="form-control" id="search-query" placeholder="Search" autocomplete="off">
                </div>
              </form>
            </div>
          </div>
        </nav>
        
        <div class="subnav navbar navbar-default">
          <div class="container hide-when-search" id="breadcrumb">
            <ul class="breadcrumb">
              <li></li>
            </ul>
          </div>
        </div>
      </header>
      <div role="main" class="container body-content hide-when-search">
        
        <div class="sidenav hide-when-search">
          <a class="btn toc-toggle collapse" data-toggle="collapse" href="#sidetoggle" aria-expanded="false" aria-controls="sidetoggle">Show / Hide Table of Contents</a>
          <div class="sidetoggle collapse" id="sidetoggle">
            <div id="sidetoc"></div>
          </div>
        </div>
        <div class="article row grid-right">
          <div class="col-md-10">
            <article class="content wrap" id="_content">
              
              
              <h1 id="FubarDev_WebDavServer_Dispatchers_IWebDavClass2" data-uid="FubarDev.WebDavServer.Dispatchers.IWebDavClass2">Interface IWebDavClass2
              </h1>
              <div class="markdown level0 summary"><p>Interface for WebDAV class 2 support</p>
</div>
              <div class="markdown level0 conceptual"></div>
              <div class="inheritedMembers">
                <h5>Inherited Members</h5>
                <div>
                  <a class="xref" href="FubarDev.WebDavServer.Dispatchers.IWebDavClass.html#FubarDev_WebDavServer_Dispatchers_IWebDavClass_HttpMethods">IWebDavClass.HttpMethods</a>
                </div>
                <div>
                  <a class="xref" href="FubarDev.WebDavServer.Dispatchers.IWebDavClass.html#FubarDev_WebDavServer_Dispatchers_IWebDavClass_WebDavContext">IWebDavClass.WebDavContext</a>
                </div>
                <div>
                  <a class="xref" href="FubarDev.WebDavServer.Dispatchers.IWebDavClass.html#FubarDev_WebDavServer_Dispatchers_IWebDavClass_OptionsResponseHeaders">IWebDavClass.OptionsResponseHeaders</a>
                </div>
                <div>
                  <a class="xref" href="FubarDev.WebDavServer.Dispatchers.IWebDavClass.html#FubarDev_WebDavServer_Dispatchers_IWebDavClass_DefaultResponseHeaders">IWebDavClass.DefaultResponseHeaders</a>
                </div>
                <div>
                  <a class="xref" href="FubarDev.WebDavServer.Dispatchers.IWebDavClass.html#FubarDev_WebDavServer_Dispatchers_IWebDavClass_GetProperties_FubarDev_WebDavServer_FileSystem_IEntry_">IWebDavClass.GetProperties(IEntry)</a>
                </div>
                <div>
                  <a class="xref" href="FubarDev.WebDavServer.Dispatchers.IWebDavClass.html#FubarDev_WebDavServer_Dispatchers_IWebDavClass_TryCreateDeadProperty_FubarDev_WebDavServer_Props_Store_IPropertyStore_FubarDev_WebDavServer_FileSystem_IEntry_System_Xml_Linq_XName_FubarDev_WebDavServer_Props_Dead_IDeadProperty__">IWebDavClass.TryCreateDeadProperty(IPropertyStore, IEntry, XName, IDeadProperty)</a>
                </div>
              </div>
              <h6><strong>Namespace</strong>:FubarDev.WebDavServer.Dispatchers</h6>
              <h6><strong>Assembly</strong>:FubarDev.WebDavServer.dll</h6>
              <h5 id="FubarDev_WebDavServer_Dispatchers_IWebDavClass2_syntax">Syntax</h5>
              <div class="codewrapper">
                <pre><code class="lang-csharp hljs">public interface IWebDavClass2 : IWebDavClass</code></pre>
              </div>
              <h3 id="methods">Methods
              </h3>
              <span class="small pull-right mobile-hide">
                <span class="divider">|</span>
                <a href="https://github.com/FubarDevelopment/WebDavServer/new/master/apiSpec/new?filename=FubarDev_WebDavServer_Dispatchers_IWebDavClass2_LockAsync_System_String_FubarDev_WebDavServer_Model_lockinfo_System_Threading_CancellationToken_.md&amp;value=---%0Auid%3A%20FubarDev.WebDavServer.Dispatchers.IWebDavClass2.LockAsync(System.String%2CFubarDev.WebDavServer.Model.lockinfo%2CSystem.Threading.CancellationToken)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
              </span>
              <span class="small pull-right mobile-hide">
                <a href="https://github.com/FubarDevelopment/WebDavServer/blob/master/src/FubarDev.WebDavServer/Dispatchers/IWebDavClass2.cs/#L27">View Source</a>
              </span>
              <a id="FubarDev_WebDavServer_Dispatchers_IWebDavClass2_LockAsync_" data-uid="FubarDev.WebDavServer.Dispatchers.IWebDavClass2.LockAsync*"></a>
              <h4 id="FubarDev_WebDavServer_Dispatchers_IWebDavClass2_LockAsync_System_String_FubarDev_WebDavServer_Model_lockinfo_System_Threading_CancellationToken_" data-uid="FubarDev.WebDavServer.Dispatchers.IWebDavClass2.LockAsync(System.String,FubarDev.WebDavServer.Model.lockinfo,System.Threading.CancellationToken)">LockAsync(String, lockinfo, CancellationToken)</h4>
              <div class="markdown level1 summary"><p>Creates a lock for the given <span class="paramref">path</span> using the information in <span class="paramref">info</span>.</p>
</div>
              <div class="markdown level1 conceptual"></div>
              <h5 class="decalaration">Declaration</h5>
              <div class="codewrapper">
                <pre><code class="lang-csharp hljs">[NotNull]
[ItemNotNull]
Task&lt;IWebDavResult&gt; LockAsync([NotNull] string path, [NotNull] lockinfo info, CancellationToken cancellationToken)</code></pre>
              </div>
              <h5 class="parameters">Parameters</h5>
              <table class="table table-bordered table-striped table-condensed">
                <thead>
                  <tr>
                    <th>Type</th>
                    <th>Name</th>
                    <th>Description</th>
                  </tr>
                </thead>
                <tbody>
                  <tr>
                    <td><a class="xref" href="https://msdn.microsoft.com/en-us/library/system.string(v=vs.110).aspx">String</a></td>
                    <td><span class="parametername">path</span></td>
                    <td><p>The path to create the lock for</p>
</td>
                  </tr>
                  <tr>
                    <td><a class="xref" href="FubarDev.WebDavServer.Model.lockinfo.html">lockinfo</a></td>
                    <td><span class="parametername">info</span></td>
                    <td><p>The additional information used to create the lock</p>
</td>
                  </tr>
                  <tr>
                    <td><a class="xref" href="https://msdn.microsoft.com/en-us/library/system.threading.cancellationtoken(v=vs.110).aspx">CancellationToken</a></td>
                    <td><span class="parametername">cancellationToken</span></td>
                    <td><p>The cancellcation token</p>
</td>
                  </tr>
                </tbody>
              </table>
              <h5 class="returns">Returns</h5>
              <table class="table table-bordered table-striped table-condensed">
                <thead>
                  <tr>
                    <th>Type</th>
                    <th>Description</th>
                  </tr>
                </thead>
                <tbody>
                  <tr>
                    <td><a class="xref" href="https://msdn.microsoft.com/en-us/library/dd321424(v=vs.110).aspx">Task</a>&lt;<a class="xref" href="FubarDev.WebDavServer.IWebDavResult.html">IWebDavResult</a>&gt;</td>
                    <td><p>The result of the operation</p>
</td>
                  </tr>
                </tbody>
              </table>
              <span class="small pull-right mobile-hide">
                <span class="divider">|</span>
                <a href="https://github.com/FubarDevelopment/WebDavServer/new/master/apiSpec/new?filename=FubarDev_WebDavServer_Dispatchers_IWebDavClass2_RefreshLockAsync_System_String_FubarDev_WebDavServer_Model_Headers_IfHeader_FubarDev_WebDavServer_Model_Headers_TimeoutHeader_System_Threading_CancellationToken_.md&amp;value=---%0Auid%3A%20FubarDev.WebDavServer.Dispatchers.IWebDavClass2.RefreshLockAsync(System.String%2CFubarDev.WebDavServer.Model.Headers.IfHeader%2CFubarDev.WebDavServer.Model.Headers.TimeoutHeader%2CSystem.Threading.CancellationToken)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
              </span>
              <span class="small pull-right mobile-hide">
                <a href="https://github.com/FubarDevelopment/WebDavServer/blob/master/src/FubarDev.WebDavServer/Dispatchers/IWebDavClass2.cs/#L39">View Source</a>
              </span>
              <a id="FubarDev_WebDavServer_Dispatchers_IWebDavClass2_RefreshLockAsync_" data-uid="FubarDev.WebDavServer.Dispatchers.IWebDavClass2.RefreshLockAsync*"></a>
              <h4 id="FubarDev_WebDavServer_Dispatchers_IWebDavClass2_RefreshLockAsync_System_String_FubarDev_WebDavServer_Model_Headers_IfHeader_FubarDev_WebDavServer_Model_Headers_TimeoutHeader_System_Threading_CancellationToken_" data-uid="FubarDev.WebDavServer.Dispatchers.IWebDavClass2.RefreshLockAsync(System.String,FubarDev.WebDavServer.Model.Headers.IfHeader,FubarDev.WebDavServer.Model.Headers.TimeoutHeader,System.Threading.CancellationToken)">RefreshLockAsync(String, IfHeader, TimeoutHeader, CancellationToken)</h4>
              <div class="markdown level1 summary"><p>Refreshes a lock for the given <span class="paramref">path</span> using the lock identified by the <span class="paramref">ifHeader</span>.</p>
</div>
              <div class="markdown level1 conceptual"></div>
              <h5 class="decalaration">Declaration</h5>
              <div class="codewrapper">
                <pre><code class="lang-csharp hljs">[ItemNotNull]
Task&lt;IWebDavResult&gt; RefreshLockAsync([NotNull] string path, [NotNull] IfHeader ifHeader, [CanBeNull] TimeoutHeader timeoutHeader, CancellationToken cancellationToken)</code></pre>
              </div>
              <h5 class="parameters">Parameters</h5>
              <table class="table table-bordered table-striped table-condensed">
                <thead>
                  <tr>
                    <th>Type</th>
                    <th>Name</th>
                    <th>Description</th>
                  </tr>
                </thead>
                <tbody>
                  <tr>
                    <td><a class="xref" href="https://msdn.microsoft.com/en-us/library/system.string(v=vs.110).aspx">String</a></td>
                    <td><span class="parametername">path</span></td>
                    <td><p>The path to create the lock for</p>
</td>
                  </tr>
                  <tr>
                    <td><a class="xref" href="FubarDev.WebDavServer.Model.Headers.IfHeader.html">IfHeader</a></td>
                    <td><span class="parametername">ifHeader</span></td>
                    <td><p>The <code>If</code> header used to identify the lock</p>
</td>
                  </tr>
                  <tr>
                    <td><a class="xref" href="FubarDev.WebDavServer.Model.Headers.TimeoutHeader.html">TimeoutHeader</a></td>
                    <td><span class="parametername">timeoutHeader</span></td>
                    <td><p>The new timeout values</p>
</td>
                  </tr>
                  <tr>
                    <td><a class="xref" href="https://msdn.microsoft.com/en-us/library/system.threading.cancellationtoken(v=vs.110).aspx">CancellationToken</a></td>
                    <td><span class="parametername">cancellationToken</span></td>
                    <td><p>The cancellcation token</p>
</td>
                  </tr>
                </tbody>
              </table>
              <h5 class="returns">Returns</h5>
              <table class="table table-bordered table-striped table-condensed">
                <thead>
                  <tr>
                    <th>Type</th>
                    <th>Description</th>
                  </tr>
                </thead>
                <tbody>
                  <tr>
                    <td><a class="xref" href="https://msdn.microsoft.com/en-us/library/dd321424(v=vs.110).aspx">Task</a>&lt;<a class="xref" href="FubarDev.WebDavServer.IWebDavResult.html">IWebDavResult</a>&gt;</td>
                    <td><p>The result of the operation</p>
</td>
                  </tr>
                </tbody>
              </table>
              <span class="small pull-right mobile-hide">
                <span class="divider">|</span>
                <a href="https://github.com/FubarDevelopment/WebDavServer/new/master/apiSpec/new?filename=FubarDev_WebDavServer_Dispatchers_IWebDavClass2_UnlockAsync_System_String_FubarDev_WebDavServer_Model_Headers_LockTokenHeader_System_Threading_CancellationToken_.md&amp;value=---%0Auid%3A%20FubarDev.WebDavServer.Dispatchers.IWebDavClass2.UnlockAsync(System.String%2CFubarDev.WebDavServer.Model.Headers.LockTokenHeader%2CSystem.Threading.CancellationToken)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
              </span>
              <span class="small pull-right mobile-hide">
                <a href="https://github.com/FubarDevelopment/WebDavServer/blob/master/src/FubarDev.WebDavServer/Dispatchers/IWebDavClass2.cs/#L49">View Source</a>
              </span>
              <a id="FubarDev_WebDavServer_Dispatchers_IWebDavClass2_UnlockAsync_" data-uid="FubarDev.WebDavServer.Dispatchers.IWebDavClass2.UnlockAsync*"></a>
              <h4 id="FubarDev_WebDavServer_Dispatchers_IWebDavClass2_UnlockAsync_System_String_FubarDev_WebDavServer_Model_Headers_LockTokenHeader_System_Threading_CancellationToken_" data-uid="FubarDev.WebDavServer.Dispatchers.IWebDavClass2.UnlockAsync(System.String,FubarDev.WebDavServer.Model.Headers.LockTokenHeader,System.Threading.CancellationToken)">UnlockAsync(String, LockTokenHeader, CancellationToken)</h4>
              <div class="markdown level1 summary"><p>Removes a LOCK with the given <span class="paramref">stateToken</span> from the given <span class="paramref">path</span></p>
</div>
              <div class="markdown level1 conceptual"></div>
              <h5 class="decalaration">Declaration</h5>
              <div class="codewrapper">
                <pre><code class="lang-csharp hljs">[NotNull]
[ItemNotNull]
Task&lt;IWebDavResult&gt; UnlockAsync([NotNull] string path, [NotNull] LockTokenHeader stateToken, CancellationToken cancellationToken)</code></pre>
              </div>
              <h5 class="parameters">Parameters</h5>
              <table class="table table-bordered table-striped table-condensed">
                <thead>
                  <tr>
                    <th>Type</th>
                    <th>Name</th>
                    <th>Description</th>
                  </tr>
                </thead>
                <tbody>
                  <tr>
                    <td><a class="xref" href="https://msdn.microsoft.com/en-us/library/system.string(v=vs.110).aspx">String</a></td>
                    <td><span class="parametername">path</span></td>
                    <td><p>The path to remove the lock for</p>
</td>
                  </tr>
                  <tr>
                    <td><a class="xref" href="FubarDev.WebDavServer.Model.Headers.LockTokenHeader.html">LockTokenHeader</a></td>
                    <td><span class="parametername">stateToken</span></td>
                    <td><p>The state token of the lock to remove</p>
</td>
                  </tr>
                  <tr>
                    <td><a class="xref" href="https://msdn.microsoft.com/en-us/library/system.threading.cancellationtoken(v=vs.110).aspx">CancellationToken</a></td>
                    <td><span class="parametername">cancellationToken</span></td>
                    <td><p>The cancellcation token</p>
</td>
                  </tr>
                </tbody>
              </table>
              <h5 class="returns">Returns</h5>
              <table class="table table-bordered table-striped table-condensed">
                <thead>
                  <tr>
                    <th>Type</th>
                    <th>Description</th>
                  </tr>
                </thead>
                <tbody>
                  <tr>
                    <td><a class="xref" href="https://msdn.microsoft.com/en-us/library/dd321424(v=vs.110).aspx">Task</a>&lt;<a class="xref" href="FubarDev.WebDavServer.IWebDavResult.html">IWebDavResult</a>&gt;</td>
                    <td><p>The result of the operation</p>
</td>
                  </tr>
                </tbody>
              </table>
                        </article>
          </div>
          
          <div class="hidden-sm col-md-2" role="complementary">
            <div class="sideaffix">
              <div class="contribution">
                <ul class="nav">
                  <li>
                    <a href="https://github.com/FubarDevelopment/WebDavServer/new/master/apiSpec/new?filename=FubarDev_WebDavServer_Dispatchers_IWebDavClass2.md&amp;value=---%0Auid%3A%20FubarDev.WebDavServer.Dispatchers.IWebDavClass2%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A" class="contribution-link">Improve this Doc</a>
                  </li>
                  <li>
                    <a href="https://github.com/FubarDevelopment/WebDavServer/blob/master/src/FubarDev.WebDavServer/Dispatchers/IWebDavClass2.cs/#L18" class="contribution-link">View Source</a>
                  </li>
                </ul>
              </div>
              <nav class="bs-docs-sidebar hidden-print hidden-xs hidden-sm affix" id="affix">
              <!-- <p><a class="back-to-top" href="#top">Back to top</a><p> -->
              </nav>
            </div>
          </div>
        </div>
      </div>
      
      <footer>
        <div class="grad-bottom"></div>
        <div class="footer">
          <div class="container">
            <span class="pull-right">
              <a href="#top">Back to top</a>
            </span>
            <span>Copyright © 2016-2017 Fubar Development Junker<br>Generated by <strong>DocFX</strong></span>
            
          </div>
        </div>
      </footer>
    </div>
    
    <script type="text/javascript" src="../styles/docfx.vendor.js"></script>
    <script type="text/javascript" src="../styles/docfx.js"></script>
    <script type="text/javascript" src="../styles/jquery.min.js"></script>
    <script type="text/javascript" src="../styles/main.js"></script>
  </body>
</html>
